<?php
/**
 *   OPENSHOP AJAX公用文件
 * 
 *   @link        http://baison.com.cn
 *   @copyright   Baison, Inc.
 *   @package     OpenShop
 *   @version     $Id: xajax.common.php,v 1.0 2009/06/17 08:36:58 created $
 *   @author      FillBag <fillbag@hotmail.com>
 */

require_once('modules/xajax/xajaxExtend.inc.php');
require_once('xajax.server.php');
require_once('Page.class.php');

$xajax = new xajaxExtend();
$xajax->statusMessagesOn();
if(strtoupper(trim($xajax->sEncoding)) != 'UTF-8' )
{
	$xajax->setCharEncoding('utf-8');
    $xajax->decodeUTF8InputOn();
}

//$xajax->debugOn();
$xajax->registerFunction("list_controls");
$xajax->registerFunction('goto_page');
$xajax->processRequests();
$smarty->assign('xajax_javascript',$xajax->getJavascript('js'));
?>